<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/question.css" rel="stylesheet" type="text/css"/>

</block>

<block name="body">
    <div class="col-xs-12">
        <!--userinfo-->
        <include file="Public/user_info"/>
        <include file="Public/_top_menu"/>
    </div>


    <div class="col-md-9">
        <div class="bgwhite pull-left" style="margin-top: 0;padding-bottom: 40px;">
            <div class="question_h">
                <a href="{:U('question/usercenter/publish',array('uid'=>$uid))}" class="pull-left active" style="width: 140px;">发布的问题</a>
                <a href="{:U('question/usercenter/answer',array('uid'=>$uid))}" class="pull-left" style="width: 140px;">回答的问题</a>
            </div>

            <div class="question_list" style="padding-right: 5px;padding-left: 5px;">
                <if condition="count($questionList) eq 0"><p class="text-muted"
                                                             style="text-align: center; font-size: 3em;">
                    <br><br>
                    没有符合条件的问题～
                    <br><br><br>
                </p></if>
                <php>
                    if(C('QUESTION_WORDS_COUNT')){
                    $Question_words_count=C('QUESTION_WORDS_COUNT');
                    }else{
                    $Question_words_count=1000;
                    }
                </php>

                <volist name="questionList" id="question">
                    <include file="Public/_question"/>
                </volist>
                <div style="width: 100%;text-align: center;">
                    {:getPagination($totalCount,50)}
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-3 col-xs-12">
        <include file="Public/guai"/>
        <include file="Public/link"/>
    </div>
    <include file="Public/_repost"/>
</block>
<block name="script">
    <script>
        initAnswerNum="{:C('QUESTION_WORDS_COUNT')}"?"{:C('QUESTION_WORDS_COUNT')}":1000;
    </script>
    <script type="text/javascript" src="__JS__/question.js"></script>
    <script type="text/javascript" src="__JS__/share.js"></script>
</block>
